package top.dbhg.tasklist;

import net.minecraft.util.Identifier;
import top.dbhg.tasklist.hud.Command;
import net.fabricmc.api.ModInitializer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import top.dbhg.tasklist.hud.HUD;

public class Tasklist implements ModInitializer {
	public static String MOD_ID = "tasklist";
	public static String MOD_Name = "TaskList";
	public static final Identifier Task_List = new Identifier(MOD_ID, "tasklist");
	public static String MOD_Version = "1.0.0";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_Name);
	public enum DebugType {
		INFO,
		ERROR
	}
	public static void Mod_DeBug(String text, DebugType type) {
		if (type == null) {
			type = DebugType.INFO;
		}
		switch (type) {
			case INFO:
				LOGGER.info("[" + MOD_Name + " - INFO] " + text);
				break;
			case ERROR:
				LOGGER.error("[" + MOD_Name + " - ERROR] " + text);
				break;
			default:
				LOGGER.warn("[" + MOD_Name + " - UNKNOWN] " + text);
				break;
		}
	}
	@Override
	public void onInitialize() {
		Mod_DeBug("INSTALL Version "+ MOD_Version,null);
		Command.onInit();
		HUD.register();
	}
}